function mix(){
    if(arguments.length==0){
        return null;
    }
    mix=arguments[0];
    for(var i of arguments){
        mix=mix>i?i:mix;
    }
    return mix;
}
console.log(mix(1,2,3,4,56,7));